//
//  HSYBaseAbstractInfo.m
//  高仿暴走斗图
//
//  Created by key on 16/5/31.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "HSYBaseAbstractInfo.h"
#import "NSObject+Runtime.h"
#import "NSObject+Json.h"

@implementation HSYBaseAbstractInfo

- (instancetype)initWithDictionary:(NSDictionary *)dic {
    
    if (self = [super init]) {
        
    }
    return self;
}

+ (instancetype)initWithDictionary:(NSDictionary *)dic {
    
    return [[self alloc] initWithDictionary:dic];
}

- (NSDictionary *)toDictionary {
    
    NSDictionary *dictionary = [NSObject antiMappingDictionaryToJsonWithInfo:self];
    return dictionary;
}

- (NSString *)toJsonString {
    
    NSDictionary *dic = [self toDictionary];
    NSString *jsonString = [NSString convertJsonToStringFromJSONObject:dic];
    return jsonString;
}

@end
